<!DOCTYPE html>
<html>
<head>
<title>用户设备表</title>
<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
		   <div class="form-group col-sm-2">
                <input type="text" class="form-control" v-model="q.key" @keyup.enter="query" placeholder="输入查询条件">
            </div>
            <a class="btn btn-primary" @click="query">查询</a>
            
			<#if shiro.hasPermission("useractivetrace:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("useractivetrace:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("useractivetrace:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-2 control-label">硬件型号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userActivetrace.device" placeholder="硬件型号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">操作系统版本号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userActivetrace.os" placeholder="操作系统版本号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">IDFA</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userActivetrace.idfa" placeholder="IDFA"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">网络类型（WiFi,2G,3G,4G）</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userActivetrace.network" placeholder="网络类型（WiFi,2G,3G,4G）"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">APP包名</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userActivetrace.packageName" placeholder="APP包名"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">APP版本号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userActivetrace.appVersion" placeholder="APP版本号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">MAC地址</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userActivetrace.macAddress" placeholder="MAC地址"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">IMSI</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userActivetrace.imsiNo" placeholder="IMSI"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">SIM卡号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userActivetrace.simNo" placeholder="SIM卡号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">客户端激活时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userActivetrace.activeTime" placeholder="客户端激活时间"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">android的deviceid</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userActivetrace.androidDeviceid" placeholder="android的deviceid"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">uuid</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userActivetrace.uuid" placeholder="uuid"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">渠道</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userActivetrace.partner" placeholder="渠道"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">guid(服务端产生)</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userActivetrace.guid" placeholder="guid(服务端产生)"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">创建时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userActivetrace.createTime" placeholder="创建时间"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">用来发推送的唯一标识</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userActivetrace.devicetoken" placeholder="用来发推送的唯一标识"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">推送状态:0-系统层面关闭推送  1-系统层面打开推送，软件推送关闭  2-随时可以发送推送</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userActivetrace.pushstatus" placeholder="推送状态:0-系统层面关闭推送  1-系统层面打开推送，软件推送关闭  2-随时可以发送推送"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">设备类型:0-安卓;1-IOS</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userActivetrace.deviceType" placeholder="设备类型:0-安卓;1-IOS"/>
			    </div>
			</div>
							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<script src="${request.contextPath}/statics/js/modules/generator/useractivetrace.js?_${.now?long}"></script>
</body>
</html>